{% extends 'base.html' %}
{% block body %}
<div class="po_banner" style="height:237px;background:url('{{first_class.0.images_url}}') center center  no-repeat;margin-bottom:50px;">
    </div>
    <div class="w1400 po_main clear">
        <div class="left left_nav second">
            {% for i in first_class_list %}
            <h2>
                {{i.first_class}}
            </h2>
            <div class="accordion" id="accordionExample">
                <div class="card">
                    <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
                        <div class="card-body">
                            <ul class="list-group">
                                {% for k in i.second_class_list %}
                                    <li class="list-group-item {% if k.name == second_class.name %}cur{% endif %}"><a href="/second_class/{{k.id}}">{{k.name}}<span class="caret"></span></a></li>
                                {% endfor %}
                                </ul>
                        </div>
                    </div>
                    {% endfor %}
                </div>

            </div>
        </div>
        <div class="left second_main clear">
            <div class="path">
                首页 > {{first_class.0.name}} > <a href="/second_class/{{second_class_id}}">{{second_class.name}}</a>
            </div>
            <div class="second_box">
                {{second_class.customize_description | safe}}
            </div>

        </div>
    </div>
{% endblock %}